package mhl.service;

import mhl.dao.MenuDao;

import mhl.domain.Menu;



import java.util.List;

public class MenuService {
    MenuDao menuDao=new MenuDao();
    public List<Menu> getMenuTable(){
        return menuDao.querymulti("select * from menu", Menu.class);
    }

    public Menu getmenuId(int Id){
        return menuDao.querysingle("select * from menu where MenuId=?",Menu.class,Id);
    }
}
